package clientGUI.user.ISD;

import javax.swing.JPanel;

import clientGUI.user.Controllers.ISD.ISDReportController;
import clientGUI.userPanels.UPanel;
import clientserver.Client;
import java.awt.GridBagLayout;
import javax.swing.JEditorPane;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.JSeparator;
import javax.swing.JTextPane;
import javax.swing.JLabel;

public class ISDReport extends UPanel {
	private JTextPane reportP;
	private ISDReportController controller;

	
	public ISDReport( Client connectedcl)
	{
		super();
	
		controller= new ISDReportController(connectedcl);
	;
		
		reportP = new JTextPane();
		reportP.setBounds(20, 80, 143, 169);
		String report= controller.buildReport();
		setLayout(null);
		reportP.setText(report);
		add(reportP);
		client=connectedcl;
		setName("Reports");
		
		JSeparator separator = new JSeparator();
		separator.setBounds(0, 0, 0, 0);
		add(separator);
		
		JLabel lblPereodicReport = new JLabel("Pereodic Report");
		lblPereodicReport.setBounds(28, 54, 121, 14);
		add(lblPereodicReport);
		
	

	}
}
